<template>
  <div class="invoconent">
    <invoivecomponent
      :isJump="isJump"
      key="0"
      :invoice_body_belong="activeName"
      v-if="activeName == 0"
    ></invoivecomponent>
    <invoivecomponent
      :isJump="isJump"
      key="1"
      :invoice_body_belong="activeName"
      v-if="activeName == 1"
    ></invoivecomponent>
    <invoivecomponent
      :isJump="isJump"
      key="2"
      :invoice_body_belong="activeName"
      v-if="activeName == 2"
    ></invoivecomponent>
  </div>
</template>
<script>
import { reqWebsiteList } from "@/api/customer";
import invoivecomponent from "./components/invoivecomponent.vue";
export default {
  name: "invoicebook",
  components: { invoivecomponent },
  data() {
    return {
      activeName: "0",
      isJump: false,
    };
  },
  mounted() {},
  watch: {
    $route: {
      handler(newV, oldV) {
        const params = this.$route.query;
        if (params.activeName) {
          // this.isJump = true;
          this.activeName = params.activeName;
        }
      },
      immediate: true,
      deep: true,
    },
  },
  methods: {
    // tab选中
    handleClick(value) {
      this.activeName = value;
    },
  },
};
</script>

<style scoped lang='scss'>
@import "../invoicebook/css/index.css";
</style>